<table cellpadding="0" cellspacing="0" style="margin:3px 0 3px 0; border-top:1px solid white; width:100% ">
	<tr>
		<td height="3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
	<tr>
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td width="80">{t t='Pasirinkite kalbą'}:</td>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td width="15">
		<select name="languages" style="width:70px" onChange="window.location='index.php?admin=1&popup=16&id={$smarty.get.id}&parent={$data.page.id}'+this.value">
		  {foreach from=$data.tree.lang item="el"}
		  <option value="&new_lang={$el.name}" {if $smarty.get.new_lang|lower==$el.name|lower}selected{elseif !$smarty.get.new_lang && $el.name|lower=='lt'}selected{/if}>{$el.name}</option>
		  {/foreach}
		</select>		
		</td>
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td style="padding:0px 10px 0px 10px; text-align:center  "><a href="#" target="_self" onClick="checkboxStatus('perm_array',true); return false;">{t t="Žymėti visus"}</a></td>
		<td style="padding:0px 10px 0px 10px; border-left:1px solid #fff; text-align:center "><a href="#" target="_self" onClick="checkboxStatus('perm_array',false); return false;">{t t="Nuimti žymėjimą"}</a></td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0" style="border-top:1px solid white; margin:2px 0 0 0; width:100%; border-bottom:1px solid #D6DBDE   ">
	<tr>		
		{ext->get_page_permision id=0 user=$smarty.get.id assign="is_true"}
		<td width="30" align="center"><input type="checkbox" name="perm_array[0]" {if !$is_true}checked{/if}></td>	
		<td height="22" width="1">&nbsp;</td>
		<td width="12" align="left"><img src="_tvs_system_core_/design/img/document_copy.gif"></td>
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td><b>{t t="Pirmasis puslapis"}</b></td>			
	</tr>
</table>
<!-- /* -->
{literal}
	<style type="text/css">
		.this .table{
			border-top:1px solid white; border-bottom:1px solid #D6DBDE; width:100%
		}
		.this .table .td1{
			width:30px; text-align:center;
		}		
		.this .table .td3{
			width:12px; text-align:left;
		}		
		.this .table .td4{
			padding:0 0 0 5px;
		}		
	</style>
{/literal}
<span class="this">
{foreach from=$tree item="el"}		
{math equation="x * y" x=20 y=$el.depth assign="width"}
<table cellpadding="0" cellspacing="0" class="table">
	<tr>		
		{ext->get_page_permision id=$el.id user=$smarty.get.id assign="is_true"}
		<td class="td1"><input type="checkbox" name="perm_array[{$el.id}]" {if !$is_true}checked{/if}></td>			
		<td height="22" width="{if $width}{$width}{else}1{/if}">&nbsp;</td>
		<td class="td3"><img src="_tvs_system_core_/design/img/document_copy.gif"></td>
		<td class="td4">{$el.name|truncate:"70"}</td>				
	</tr>
</table>
{/foreach}
</span>
<table width="100%" cellpadding="0" cellspacing="0" >
	<tr>
		<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>
<table cellpadding="0" cellspacing="0" style="margin:5px 0 5px 0 ">
	<tr>
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td>{t t='Pasirinkite kalbą'}:</td>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td width="15">
		<select name="languages" style="width:70px" onChange="window.location='index.php?admin=1&popup=16&id={$smarty.get.id}&parent={$data.page.id}'+this.value">
		  {foreach from=$data.tree.lang item="el"}
		  <option value="&new_lang={$el.name}" {if $smarty.get.new_lang|lower==$el.name|lower}selected{elseif !$smarty.get.new_lang && $el.name|lower=='lt'}selected{/if}>{$el.name}</option>
		  {/foreach}
		</select>		
		</td>
		<td width="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td style="padding:0px 10px 0px 10px;  "><a href="#" target="_self" onClick="checkboxStatus('perm_array',true); return false;">{t t="Žymėti visus"}</a></td>
		<td style="padding:0px 10px 0px 10px; border-left:1px solid #fff  "><a href="#" target="_self" onClick="checkboxStatus('perm_array',false); return false;">{t t="Nuimti žymėjimą"}</a></td>
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
	<td height="1" bgcolor="#FFFFFF"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
</tr>
</table>